package cesdentalrecord.dao.controller;


import java.util.ArrayList;
import java.util.List;

import cesdentalrecord.dao.StudentManager;

import cesdentalrecord.dao.Student;

public class SearchAStudentController {
	
	public SearchAStudentController(){}
	
	public List<Student> validateSearchAStudentEntries(String surname, String firstName, String mi){
		try{
			StudentManager sm = new StudentManager();
			List<Student> s = sm.searchAStudent(surname, firstName, mi);
			return s;
		}catch(Exception e){
			e.printStackTrace();
			return null;
		}
		
	}

}
